<?php require_once('header.php'); ?>
<?php //include_once('topwidget.php'); ?>

<div id="contentBox">
<?php include_once('sidebar.php'); ?>

<div id="content">
    <?php
		$userid = $_GET['userid'];
        $query = "SELECT * FROM users WHERE userid = $_SESSION[userid]";
		connection();
        $result = mysql_query($query);
        while($userinfo = mysql_fetch_assoc($result)) {
	?>
<h2><a href="#"><?php echo $userinfo['fullname']; ?></a><span class="addcon"><span class="address"><?php echo $userinfo['experties']; ?></span></span><br /><?php echo $userinfo['skills']; ?><span class="addcon"><span class="address">Member Since: <?php echo $userinfo['joindate']; ?></span></span></h2>
	<p>
    
    	<blockquote>
        <img src="img/logo.gif" alt="<?php echo $userinfo['fullname']; ?>" width="90" height="90" align="left" />
		<p><?php echo $userinfo['description']; ?></p>
        </blockquote><br /><br />
    	<h3>Personal Information</h3>
        <ul>
        	<li><strong>Company: </strong> <?php echo $userinfo['company']; ?></li>
            <li><strong>Address: </strong> <?php echo $userinfo['address']; ?></li>
            <li><strong>State: </strong> <?php echo $userinfo['state']; ?></li>
            <li><strong>Postal Code: </strong><?php echo $userinfo['postal']; ?></li>
            <li><strong>Country: </strong><?php echo $userinfo['country']; ?></li>
        </ul> 
        <h3>Contact Information</h3>       
        <ul>
            <li><strong>Email: </strong><?php echo $userinfo['email']; ?></li>
            <li><strong>Phone: </strong><?php echo $userinfo['phone']; ?></li>
            <li><strong>Skype: </strong><?php echo $userinfo['skype']; ?></li>
            <li><strong>Yahoo: </strong><?php echo $userinfo['yahoo']; ?></li>
        </ul>
    </p>
    <p>
    	<h2>Recent Completed Projects</h2>
    </p>
    <?php
        }
    ?>    
</div>
<div style="clear:both;"></div>

<?php //include_once('bottomwidget.php'); ?>
<?php include_once('footer.php'); ?>